/*
 * @(#)org.example 2020/3/22/0022
 *
 * Copy Right@ 人人译视界
 */


package org.example;

import org.example.registry.IServiceDiscover;
import org.example.registry.ServiceDiscoverImpl;

/**
 * <pre>
 * @author tuwei
 *
 * @version 0.9
 *
 * 修改版本: 0.9
 * 修改日期: 2020/3/22/0022
 * 修改人 :  tuwei
 * 修改说明: 初步完成
 * 复审人 ：
 * </pre>
 */
public class BootStrap {
	public static void main(String[] args) {
		IServiceDiscover serviceDiscover = new ServiceDiscoverImpl();
		RpcClientProxy rpcClientProxy = new RpcClientProxy(serviceDiscover);
		IService iService = rpcClientProxy.create(IService.class);
		System.out.println(iService.sayHello("netty-to-dubbo"));
		System.out.println(iService.sayHello("你好"));
		System.out.println(iService.sayHello("成功咯，很高兴"));
	}
}
